package com.example.shushiyunsst.widget;

import android.content.Context;
import android.graphics.Paint;
import android.text.TextPaint;
import android.util.AttributeSet;

import com.example.library_common.view.widget_helper.RTextView;

public class MaskTextView extends RTextView {

    public MaskTextView(Context context) {
        super(context);
        TextPaint paint = getPaint();
        if (paint != null) {
            // 设置中划线并加清晰
            paint.setFlags(Paint.STRIKE_THRU_TEXT_FLAG | Paint.ANTI_ALIAS_FLAG);
        }
    }

    public MaskTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
        TextPaint paint = getPaint();
        if (paint != null) {
            // 设置中划线并加清晰
            paint.setFlags(Paint.STRIKE_THRU_TEXT_FLAG | Paint.ANTI_ALIAS_FLAG);
        }
    }
}
